package com.qf.day12_2;

/**
 * @author wgy
 * @version V1.0
 * @Project day12
 * @Package com.qf.day12_2
 * @Description: ${TODO}
 * @Date 2021/6/2 14:35
 * 抽象类:被abstract修饰的类
 */
public abstract class Animal {
    String breed;
    int age;
    String sex;
    public Animal(){

    }

    public Animal(String breed, int age, String sex) {
        this.breed = breed;
        this.age = age;
        this.sex = sex;
    }
    //抽象方法：被abstract修饰的方法
    public abstract void eat();
    public abstract void sleep();
}
